home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
vr386
/
wparse.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-10
|
2KB
|
64 lines
// DAve Stampe, 9/1/94
// These are usable functions from WPARSE.C for parsing
/*
This code is part of the VR-386 project, created by Dave Stampe.
VR-386 is a desendent of REND386, created by Dave Stampe and
Bernie Roehl. Almost all the code has been rewritten by Dave
Stampre for VR-386.
Copyright (c) 1994 by Dave Stampe:
May be freely used to write software for release into the public domain
or for educational use; all commercial endeavours MUST contact Dave Stampe
(dstampe@psych.toronto.edu) for permission to incorporate any part of
this software or source code into their products! Usually there is no
charge for under 50-100 items for low-cost or shareware products, and terms
are reasonable. Any royalties are used for development, so equipment is
often acceptable payment.
ATTRIBUTION: If you use any part of this source code or the libraries
in your projects, you must give attribution to VR-386 and Dave Stampe,
and any other authors in your documentation, source code, and at startup
of your program. Let's keep the freeware ball rolling!
DEVELOPMENT: VR-386 is a effort to develop the process started by
REND386, improving programmer access by rewriting the code and supplying
a standard API. If you write improvements, add new functions rather
than rewriting current functions. This will make it possible to
include you improved code in the next API release. YOU can help advance
VR-386. Comments on the API are welcome.
CONTACT: dstampe@psych.toronto.edu
*/
void dump_lists(void);
extern char loadpath[];
void *find_seg(char *name);
// these scan a line for a token
// but leave the dest unchanged if none found/error
void tokstr(char *c); // return string from line
void tokstrn(char *c); // return string or null string
void tokint(int *i); // return integer
void tokhex(unsigned *i);
void toklong(long *i);
void tokfloat(float *i);
void tokangle(long *i);
char *toks(void);
void *add_name(void **list, char *name, void *value);
void del_namelist(void *list);
void *find_name(void *list, char *name);
char *find_value(void *list, void *value);
unsigned int find_color(void *list, char *name);